import {Component, createElement} from "./framework.js"
import {Carousel} from "./carousel.js";
import {Timeline, Animation} from "./animation.js"

// TODO 图片地址不全 需要更新
let d = [
    "https://static001.geekbang.org/resource/image/bb/21/bb38f",

    "https://static001.geekbang.org/resource/image/1b/21/1b809",

    "https://static001.geekbang.org/resource/image/b6/4f/b6d65",

    "https://static001.geekbang.org/resource/image/73/e4/730ea"
]

// document.body.appendChild(a);


let a = <Carousel src={d} />
a.mountTo(document.body);

let t1 = new Timeline();

// 这段代码 也不全  需要参考 Animation 实现类确定
t1.add(new Animation({ set a(v) { console.log(v); }}, "a"));

t1.start();


